package popoer.price.thief.service;

import java.util.HashMap;
import java.util.Map;

public class ThiefFactory {

	public static final Map<String, String> thiefMap = new HashMap<String, String>();
	private static final Map<String, Thief> thieves = new HashMap<String, Thief>();
	
	static{
		
		thiefMap.put("jingdong", "京东商城");
		thiefMap.put("amazon", "卓越亚马逊");
		
		thieves.put("jingdong", new JingDongThief());
		thieves.put("amazon", new AmazonThief());
	}
	
	public static Thief getTheif(String type){
		return thieves.get(type);
	}
}
